package com.lingchen.enums;

/**
 * Author    lingchen
 * Email     838878458@qq.com
 * Time      2017/11/29
 * Function  参数
 */
public enum ResultEnum {
    SUCCESS(1, "操作成功"),
    ERROR_UNKNOWN(-1, "未知错误"),
    ERROR_EXIST_USER(-1, "用户已经注册过");


    private int code;
    private String message;

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
